package com.iisigroup.http.test;

import java.io.IOException;
import java.util.ArrayList;
import java.util.List;

import org.apache.commons.io.IOUtils;

public class Page {

    /**
     * @param args
     */
    public List<String> getAllPages(final String prefix) {
	final List<String> result = new ArrayList<String>();

	try {
	    List<String> lines = IOUtils.readLines(Page.class.getResourceAsStream("index_html.txt"));
	    for (String line : lines) {
		result.add(String.format("%s/%s", prefix,line));
	    }
	} catch (IOException e) {
	    // TODO Auto-generated catch block
	    e.printStackTrace();
	}

	return result;
    }

}
